#ifndef MAINWINDOW_GAME1_H
#define MAINWINDOW_GAME1_H

#include <QMainWindow>
#include <config.h>
#include <map1.h>
#include <QPainter>
#include <QTimer>
#include <player.h>
namespace Ui {
class MainWindow_game1;
}

class MainWindow_game1 : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow_game1(QWidget *parent = 0);
    ~MainWindow_game1();

    //地图
    Map1 m_map2;
    //角色
    Player m_player1;
    //计时器
    QTimer *_time;


public:
    void keyPressEvent(QKeyEvent *e);
    void keyReleaseEvent(QKeyEvent *e);

    //塔防游戏界面
    void game1_scene();
    //绘制
    void paintEvent(QPaintEvent *);
public slots:
    void UPDATE();
    void player_move();

private:
    Ui::MainWindow_game1 *ui;
};

#endif // MAINWINDOW_GAME1_H
